#include <led.h>
#include <STC15F2K60S2.H>


void led_disp(unsigned char ucLed[])
{
	unsigned char i,temp=0x00;
	static unsigned char temp_old=0xff;////
	
	
	for(i=0;i<8;i++)
	{
		temp|=ucLed[i]<<i;//
	}
	if(temp!=temp_old){////
	
		P0 = ~temp;
		P2 = P2&0x1f |0x80;     //&0001 1111   1000 0000
		P2 = P2&0x1f;
		temp_old = temp;////
	}
}